from conf.db_config import DbConfig


class BaseDao:
    db_config = None

    def __init__(self, db_config: DbConfig):
        self.set_db_config(db_config)

    @classmethod
    def set_db_config(cls, db_config):
        cls.db_config = db_config